package junitTest;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

import org.junit.Test;

public class jtest {
	static jtest jt;

	@Test
	public void test1() {
		assertThat(this, not(sameInstance(jt)));
		jt = this;
	}

	@Test
	public void test2() {
		assertThat(this, is(not(sameInstance(jt))));
		jt = this;
	}

	@Test
	public void test3() {
		assertThat(this, is(not(sameInstance(jt))));
		jt = this;
	}
	
	@Test
	public void test4() {
		assertThat(1, is(1));
		assertThat(1, is(not(2)));
	}
	
	@Test
	public void test5() {
		System.out.println(is(1));
		System.out.println(not(1));
		System.out.println(sameInstance(jt));
		System.out.println(not(sameInstance(jt)));
		System.out.println(is(not(sameInstance(jt))));
	}

	@Test
	public void test6() {
		assertThat(this, is(this));
		assertThat(this, is(sameInstance(this)));
	}

	@Test
	public void test7() {
		//assertThat(this, sameInstance(is(this)));  // 불능
	}
}